package com.ra.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ra.pojo.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * Author : 今晚几点睡_Ada
 * Date: 2023/3/15
 * Time: 20:33
 * 注: 后台文章
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ArticleAdminDTO {
    private Integer id;
    //文章略缩图  文章封面
    private String articleCover;
    private String articleTitle;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate createTime;
    //浏览量
    private Integer viewsCount;
    //文章分类名
    private String categoryName;
    //标签
    private List<TagDTO> tags;
    //是否置顶
    private Integer isTop;
    //是否拓建
    private Integer isFeatured;
   //逻辑删除
      private Integer isDelete;
    //状态值 1.公开 2.私密 3.草稿
    private Integer status;
    //文章类型
    private Integer type;
}
